package com.xgame.dao.impl;

import java.util.LinkedHashMap;

import com.xgame.common.exception.XgameException;
import com.xgame.dao.MyPropDao;

public class MyPropDaoImpl extends BaseDao implements MyPropDao {

	@Override
	public void userProp(Long userId, Integer propId, Integer num)
			throws XgameException {
		
	}

	@Override
	public LinkedHashMap<Integer, Integer> queryMyProps(Long userId)
			throws XgameException {
		
		return null;
	}

	@Override
	public Integer queryForTotal(Long userId, Integer propId)
			throws XgameException {
		return jdbcTemplate.queryForInt("select count(0) as count from t_my_prop where uid=? and prop_id=?", userId, propId);
	}

}
